package com.lanju.controller;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.lanju.common.SpringUtils;
import com.lanju.service.LogsService;

@Controller
@RequestMapping("logs")
public class LogsController {
	
	@Autowired
	LogsService logsService;
	
	@RequestMapping("insertLogs")
	@ResponseBody
	public Map<String,Object> insertLogs(HttpServletRequest request){
		Map<String, Object> param = SpringUtils.getParameterMap(request);
		return logsService.insertLogs(param);
	}

}
